package com.ruoyi.cs.domain.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class TGoodsUpgrateVo implements Serializable {
    @ApiModelProperty(value = "选择升级的饰品")
    @NotNull(message = "goodsIds不能为空")
    @Size(min = 1, max = 10, message = "goodsIds数组个数应在1到10之间")
    private List<String> goodsIds;

    @ApiModelProperty(value = "选择抵扣的背包饰品")
    private List<String> bbIds;

    @ApiModelProperty(value = "选择抵扣的背包饰品")
    @NotNull(message = "upgateRate不能为空")
    @DecimalMin(value = "0.01", message = "upgateRate最小值为0.01")
    @DecimalMax(value = "0.85", message = "upgateRate最大值为0.85")
    private Double upgateRate;

    @ApiModelProperty(value = "起点")
    @NotNull
    private Double lowerBound;

    @ApiModelProperty(value = "终点")
    @NotNull
    private Double upperBound;
}
